import request from "../utils/request";

export function register(data){
    return request({
        method: 'POST',
        url: '/register',
        data:data
      })
}

export function login(data){
    return request({
        method: 'POST',
        url: '/login',
        data:data
      })
}

export function getCode(account){
    return request({
        method: 'GET',
        url: '/getCode',
        params: {
           "account": account,
        }
      })
}